package com.swyc.osschat.Test.LambdaTest.Controller;

/**
 * @author zhaol@yunrong.cn
 * @version V2.1
 * @since 2.1.0 2019/8/9 15:46
 */
public class WorkerTest {
    public static void main(String[] args) {
        test(()->"就想做一个安静的美男子！");
    }
    public static void test(Worker worker) {
        String work = worker.work();
        System.out.println(work);
    }
    public interface Worker {
        String work();
    }
}
